package com.yuanxiao.common.web.config;

import org.apache.commons.lang.StringUtils;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

/**
 * Created by luozongsheng on 12/20/16.
 */
@Component
public class TrimStringConvert implements Converter<String,String> {

    @Override
    public String convert(String params) {
        return StringUtils.trim(params);
    }

}
